import Vue from 'vue';
import VueRouter from "vue-router";
import Router from 'vue-router'
import PilotHead from '@/components/creationCenter/router/PilotHead.vue'
import ContentMag from "@/components/creationCenter/router/ContentMag.vue"
import CommentMag from "@/components/creationCenter/router/CommentMag.vue"
import PilotHeadRecentArt from "@/components/creationCenter/router/PilotHeadRecentArt.vue"
import PilotHeadRecentUp from "@/components/creationCenter/router/PilotHeadRecentUp.vue"


Vue.use(Router)  //Vue全局使用Router
export default new VueRouter({
  linkActiveClass: 'active',

  routes:[
      {
         path:"/",
         component:PilotHead,
         children:[
          {
          path:"/",
          name:"近期文章",
          component:PilotHeadRecentArt
          },
          {
            path:"recentUp",
            name:"最近上传",
            component:PilotHeadRecentUp
            },

        
         ]
      },
      {
        path:"/ContentMag",
        name:"内容管理",
        component:ContentMag
      },
      {
        path:"/commentMag",
        name:"评论管理",
        component:CommentMag

      },


  ]

})